package com.ubb.dbms.domain.queryData;

import java.util.HashMap;
import java.util.Map;

public class TableRowElements {
	private Map<String, Object> columnValues;
	
	public TableRowElements() {
		columnValues = new HashMap<String, Object>();
	}
	
	public Map<String, Object> getColumnValues() {
		return columnValues;
	}

	public void setColumnValues(Map<String, Object> columnValues) {
		this.columnValues = columnValues;
	}

	public void addColumnValue(String columnName, Object columnValue) {
		columnValues.put(columnName, columnValue);
	}
	
	public Object getColumnValue(String columnName) {
		return columnValues.get(columnName);
	}
	
	public Object setColumnValue(String columnName, Object value) {
		return columnValues.put(columnName, value);
	}
}
